// SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
// SPDX-License-Identifier: Mulan PSL v2
package com.geniusai.aip.auth.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * @author hml14563
 * @date 2021/5/10
 */
@Data
public class GpuResponse {
    private String status;

    private Result data;

    @Data
    public static class Result {
        private String resultType;

        private List<GpuMetric> result;
    }

    @Data
    public static class GpuMetric {
        private Metric metric;

        private List<Object> value;
    }

    @Data
    public static class Metric {
        @JsonProperty("UUID")
        private String uuid;

        @JsonProperty("__name__")
        private String name;

        private String endpoint;

        private String gpu;

        private String instance;

        private String job;

        private String namespace;

        private String pod;

        private String service;

        private String container;

        @JsonProperty("exported_namespace")
        private String exportedNamespace;

        @JsonProperty("exported_pod")
        private String exportedPod;
    }
}
